home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / taropyon / guilib3 / inc / guidefs.h < prev    next >
C/C++ Source or Header  |  1993-11-30  |  3KB  |  127 lines

  1. /*    :*****************************************************************
  2.     :    "guidefs.h"
  3.     :*****************************************************************
  4. */
  5. #ifndef    _GUIDEFS_H
  6. #define    _GUIDEFS_H
  7.  
  8. #ifndef    _SPDEFS_H
  9. #    include    "spdefs.h"
  10. #endif
  11.  
  12. extern    CONST void    *NULSTR;
  13.  
  14. #define    SCXMAX    (640)
  15. #define    SCYMAX    (480)
  16. #define    SWXMAX    (1024)
  17. #define    SWYMAX    (512)
  18.  
  19. #define    C_BLACK        0
  20. #define    C_BLUE        1
  21. #define    C_RED        2
  22. #define    C_MAGENTA    3
  23. #define    C_GREEN        4
  24. #define    C_CYAN        5
  25. #define    C_YELLOW    6
  26. #define    C_WHITE        7
  27. #define    C_HBLACK    8
  28. #define    C_HBLUE        9
  29. #define    C_HRED        10
  30. #define    C_HMAGENTA    11
  31. #define    C_HGREEN    12
  32. #define    C_HCYAN        13
  33. #define    C_HYELLOW    14
  34. #define    C_HWHITE    15
  35.  
  36. #define    C_THROUGH    0
  37. #define    C_MBLACK    1
  38.  
  39. #define    PSET    0
  40. #define    PRESET    1
  41. #define    OR        2
  42. #define    AND        3
  43. #define    XOR        4
  44. #define    NOT        5
  45. #define    OPAQUE    9
  46.  
  47. #define    MASKSET        13
  48. #define    MASKRESET    14
  49. #define    MASTNOT        15
  50.  
  51. extern    char    *EgbPtr;
  52. extern    char    *MosPtr;
  53. extern    char    *SndPtr;
  54.  
  55. typedef    struct
  56. {    SHORT    x, y;
  57. } POINT;
  58.  
  59. typedef    struct
  60. {    SHORT    x1, y1, x2, y2;
  61. } FRAME;
  62.  
  63. typedef    struct
  64. {    SHORT    x0, y0, xs, ys;
  65. } FRAME2;
  66.  
  67. typedef    SHORT    COLOR;
  68.  
  69. typedef    struct
  70. {    int        md;
  71.     FRAME    fr;                            /* 画面枠                    */
  72.     FRAME    sc;                            /* 表示スクリーンサイズ        */
  73.     FRAME    view;                        /* ビューポート                */
  74.     POINT    dspstart;                    /* 表示開始位置                */
  75.     FRAME    dlgArea;                    /* ダイアログ表示範囲        */
  76. } SCINF;
  77.  
  78. typedef    struct    /* ディスプレイコントール構造体    */
  79. {
  80.     USHORT    ds;                            /* DS                        */
  81.     SHORT    dmy_1;
  82.  
  83.     UCHAR    page0;                        /* page 0 側の解像度        */
  84.     UCHAR    page1;                        /* page 1 側の解像度        */
  85.     UCHAR    writePage;                    /* 書き込みページ            */
  86.     UCHAR    displayPage;                /* 表示ページ                */
  87.  
  88.     UCHAR    priority;                    /* 表示プライオリティ        */
  89.     UCHAR    mode;                        /* 色数                        */
  90.     USHORT    width;                        /* vram 横サイズ            */
  91.  
  92.     SCINF    scinf[2];                    /* 画面情報                    */
  93.  
  94.     UCHAR    sysPage;                    /* システム行表示ページ        */
  95.     char    dmy_2[3];
  96.  
  97.     COLOR    white;                        /* 白色                        */
  98.     COLOR    black;                        /* 黒色                        */
  99.     COLOR    gray;                        /* 灰色                        */
  100.     COLOR    xor;                        /* 反転色                    */
  101.     COLOR    shadow;                        /* 影                        */
  102.     COLOR    dark;                        /* 灰色2                    */
  103.  
  104.     UCHAR    fntype;                        /* フォントタイプ            */
  105.     UCHAR    defFnt;                        /* デフォルトフォント        */
  106.     char    sdkAtFlag;                    /* サイドワーク起動中??     */
  107.     char    pclAtFlag;                    /* 子プロセス起動中??        */
  108.  
  109. } DSPCTRL;
  110.  
  111. extern    DSPCTRL    DspCtrl;
  112.  
  113. typedef struct
  114. {
  115.     int        ignore;                /* 表示状態                    */
  116.     int        dsp;                /* 表示フラグ                */
  117.     POINT    point;                /* カーソル座標                */
  118.     FRAME    move;                /* カーソル移動範囲            */
  119.     int        page;                /* 書き込みページ            */
  120.     int        curptn;                /* カーソルパターンNo.        */
  121.     int        scrollPage;            /* スクロールページ            */
  122. } MOSINF;                        /* マウス情報構造体            */
  123.  
  124. extern    MOSINF    MosInf;
  125.  
  126. #endif
  127.